// 登录注册页面通用样式
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  padding: 20px;
  
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 8px;
  padding: 40px;
  border: 1px solid #e4e7ed;
  box-shadow: none;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  margin-top: 16px;
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  letter-spacing: 1px;

}

.auth-form {
  .el-form-item {
    margin-bottom: 20px;
  }

  .el-input {
    --el-input-height: 40px;
    
    .el-input__wrapper {
      background-color: #ffffff;
      border: 1px solid #dcdfe6;
      box-shadow: none !important;
      transition: all 0.2s ease;

      &:hover {
        border-color: #c0c4cc;
      }

      &.is-focus {
        border-color: #B89B7A;
        background-color: #ffffff;
      }
    }

    .el-input__inner {
      color: #2c3e50;
      font-size: 14px;

      &::placeholder {
        color: #909399;
      }
    }

    .el-input__prefix-inner {
      color: #909399;
    }
  }

  // 验证码按钮样式
  .send-code-btn {
    height: 40px;
    border: none;
    background: #B89B7A;
    color: #ffffff;
    font-weight: normal;

    &:hover:not(:disabled) {
      background: #8B7355;
    }

    &:disabled {
      background: #f5f7fa;
      color: #909399;
    }
  }
}

// 登录/注册按钮
.auth-button {
  width: 100%;
  height: 40px;
  font-size: 15px;
  font-weight: normal;
  background: #B89B7A;
  border: none;
  margin-top: 8px;

  &:hover {
    background: #8B7355;
    transform: none;
  }
}

// 底部链接
.auth-links, .auth-link {
  text-align: center;
  margin-top: 16px;
  color: #909399;
  font-size: 13px;

  a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: normal;

    &:hover {
      color: #357ABD;
      text-decoration: none;
    }
  }
}

.auth-links {
  display: flex;
  justify-content: space-between;
  
  .forget-link {
    margin-left: 0;
  }
}

// 滚动条美化
.auth-box {
  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: rgba(74, 144, 226, 0.2);
    border-radius: 3px;

    &:hover {
      background-color: rgba(74, 144, 226, 0.4);
    }
  }

  &::-webkit-scrollbar-track {
    background-color: transparent;
  }
}

// 响应式调整
@media (max-width: 480px) {
  .auth-box {
    padding: 24px 20px;
    border: none;
  }
}
